<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = '使用通道二充值';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="page-title">
  <div>
    <h1><i class="fa fa-cny"></i> 充值申请</h1>
    <p style="font-style:normal;">设置付款方支付宝账号和充值金额，提交充值申请，等待管理员审核</p>
  </div>
  <div style="width:300px;">
    <ul class="breadcrumb">
      <li><i class="fa fa-home fa-lg"></i></li>
      <li>充值和提现</li>
      <li><a href="#">充值申请</a></li>
    </ul>
  </div>
</div>

<!-- page body start-->
<div class='card'>
<?php $form = ActiveForm::begin(); ?>
<?php
  if(isset($tip)&&$tip===true){
    if($model->hasErrors()){
?>
      <div class="alert alert-danger" role="alert">
        <?php
            foreach($model->getErrors("") as $key=>$value){
              echo $value."<br>";
            }
        ?>
      </div>
<?php
    }else{
?>
      <div class="alert alert-success" role="alert">充值申请已提交，请等待审核结果！</div>
<?php
    }
  }
?>
<?= $form->field($model, 'alipay_user') ?>
<?= $form->field($model, 'member_real_name') ?>
<?= $form->field($model, 'money')->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{1,9}[.99]']) ?>
<button type="submit" class="btn btn-warning">提交充值申请</button>
<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
